using System;
using Science.Mathematics;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter42
{
	/// <summary>
	/// Example04: The Ground State of Hydrogen
	/// Calculate the most probable value of r for an 
	/// electron in the ground state of the hydrogen atom.
	/// </summary>
	public class Example04
	{
		public Example04()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Hydrogen H = new L.Hydrogen();
			Function.DoubleToDouble wavefunction
				= H.GroundStateWaveFunction;
			result+=Convert.ToString(wavefunction(H.HydrogenRadiusNanoMeter))+"\r\n";
		}
	}
}
